ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}
// img{
//   margin: auto;
// }
.container {
  position: relative;
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
  color: var(--main-text-color);
  >div{
    >a{
      display: block;
      line-height: 64px;
      margin-right: 20px;
    }
  }
  nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;

    ul {
      // display: flex;
      width: 100%;
      height: 100%;
      font-size: 16px;
      li{
        padding: 0px 12px;
        line-height: 64px;
        float: left;
        line-height: 64px;
        >a{
          padding: 0px;
        }
        &:nth-child(1) {
          padding-left: 0px;
        }
        
      }
      .right {
        float: right;
        // background-color: #000;
      }
    }

    a {
      padding: 16 0px;
    }

    a:hover {
      color: var(--primary-color);
    }

    .active {
      a {
        color: var(--primary-color);
      }
    }
  }

  a {
    color: inherit;

  }

}

.mobileNav {
  position: absolute;
  right: 15px;

  span {
    display: block;
    width: 25px;
    height: 4px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    opacity: 1;
    transition: all 250ms ease-in-out 0s;
  }

  span:nth-child(2) {
    margin: 5px 0;
    // color: var(--main-text-color);
  }
}

.mobileNav.active {
  span:nth-child(2) {
    opacity: 0;
  }

  span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

//最小768(移动端)
@media (max-width: 768px) {
  .mobileNav {
    display: block;
  }

  nav {
    position: absolute;
    height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    top: 64px;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .mobileMenu {
    max-height: 100vh;
    overflow: visible;
    z-index: 88;

    ul {
      flex-direction: column;
      width: 100%;
      background: var(--bg);
      align-items: center;
    }

    ul:last-child {
      padding-bottom: 10px;
    }

    li {
      text-align: center;
      width: 100%;
      line-height: 48px;
    }
  }

  :global {
    button.ant-switch {
      margin: 10px 0;
    }
  }
}

//pc端
@media (min-width: 768px) {
  .mobileNav {
    display: none;
  }
}

:global {
  .ant-layout-header {
    padding: 0;
  }

  /*小屏幕*/
  @media screen and (max-width: 768px) {
    .ant-layout-header {
      padding-right: 15px;
      padding-left: 15px;
    }
  }

  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
